package comm;

public class ChessInfo {

	public byte index;
	public byte color;
	public byte row;
	public byte col;
	public byte[] reserved = new byte[4];

	public ChessInfo(byte i, byte clr, byte r, byte c, byte[] rs) {
		index = i;
		color = clr;
		row = r;
		col = c;
		for (int k = 0; k < 4; k++)
			reserved[k] = rs[k];
	}

	public ChessInfo(ChessInfo c) {
		index = c.index;
		color = c.color;
		row = c.row;
		col = c.col;
		for (int k = 0; k < 4; k++)
			reserved[k] = c.reserved[k];
	}

	public void print() {
		System.out.println("Chess at " + row + "," + col);
	}
}
